<div id="page" style="z-index: 850;">
    <?php echo form_open() ?>
    <div class="page-title">
        <div style="z-index: 830;" class="in">
            <div class="titlebar">	
                <h2><?php echo $lang['heading_title_country'] ?></h2>
            </div>
            <div class="button-area"><?php echo form_submit($input_submit) ?></div>
        </div>
    </div>
    <div class="content" style="z-index: 730;">
        <?php if (!empty($error)) { ?>
            <div class="albox errorbox">
                <ul>
                    <?php foreach ($error as $err) { ?>
                        <li><?php echo $err ?></li>
                    <?php } ?>
                </ul>

            </div>
        <?php } ?>
        <?php foreach ($form as $tab) { ?>
            <div class="st-form-line" style="z-index: 680;">	

                <span class="st-labeltext"><?php echo $tab['label'] ?></span>	
                <?php $func = 'form_' . $tab['type'] ?>
                <?php if ($tab['type'] == 'radio' || $tab['type'] == 'checkbox') { ?>
                    <?php foreach ($tab['value'] as $input) { ?>
                        <?php echo $func($input) ?>
                        <?php echo form_label($input['label']) ?>
                    <?php } ?>
                <?php } elseif ($tab['type'] == 'dropdown') { ?>
                    <?php foreach ($tab['value'] as $input) { ?>
                        <?php echo form_dropdown($input['name'], $input['options'], $input['selected'], $input['extra']) ?>
                    <?php } ?>
                <?php } else { ?>
                    <?php echo $func($tab['value']) ?>
                <?php } ?>

                <div class="clear" style="z-index: 670;"></div>

            </div>
        <?php } ?>
    </div>
    <?php echo form_close() ?>
</div>